import request from '@/utils/request'



export function getList(params) {
  return request({
    url: '/purchase-order/list',
    method: 'get',
    params
  })
}

export function getInfo(params) {
  return request({
    url: '/purchase-order/detail/'+params,
    method: 'get',
  })
}

export function addorupdate(data) {
  return request({
    url: '/purchase-order/addorupdate',
    method: 'post',
    data
  })
}

export function del(data) {
  return request({
    url: '/purchase-order/remove/'+data,
    method: 'delete',
    data
  })
}

export function input(data) {
  return request({
    url: '/purchase-order/godown-drug',
    method: 'post',
    data
  })
}